﻿using GalaSoft.MvvmLight;

namespace WP7DSMClient.ViewModel
{
    /// <summary>
    /// This class contains properties that the main View can data bind to.
    /// </summary>
    public class MainViewModel : ViewModelBase
    {
        #region Private members

        private LocalizedStrings _strings;

        #endregion

        #region Public properties

        /// <summary>
        /// Title of the application.
        /// </summary>
        public string ApplicationTitle
        {
            get
            {

                return WP7DSMClient.Resources.Localization.ApplicationTitle;
            }
        }

        /// <summary>
        /// Name of the welcome page.
        /// </summary>
        public string PageName
        {
            get
            {
                return WP7DSMClient.Resources.Localization.PageName;
            }
        }

        /// <summary>
        /// Welcome message.
        /// </summary>
        public string Welcome
        {
            get
            {
                return WP7DSMClient.Resources.Localization.Welcome;
            }
        }

        #endregion

        #region Public methods

        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            _strings = new LocalizedStrings();

            if (IsInDesignMode)
            {
                // Code runs in Blend --> create design time data.
            }
            else
            {
                // Code runs "for real"
            }
        }

        ////public override void Cleanup()
        ////{
        ////    // Clean up if needed

        ////    base.Cleanup();
        ////}

        #endregion
        
    }
}